import request from '@/utils/request'

// 查询利率信息列表
export function getIrInfoList(query) {
    return request({
        url: '/ir/queryIrInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 查询利率行情列表
export function getIrPriceList(query) {
    return request({
        url: '/ir/queryIrPriceByPage.action',
        method: 'get',
        params: query
    })
}

// 查询利率行情曲线
export function getIrPriceCurve(query) {
    return request({
        url: '/ir/queryIrPriceCurve.action',
        method: 'get',
        params: query
    })
}

// 新增利率信息
export function addIrInfo(data) {
    return request({
        url: '/ir/insertIrInfo.action',
        method: 'post',
        data: data
    })
}

// 修改利率信息
export function updateIrInfo(data) {
    return request({
        url: '/ir/updateIrInfo.action',
        method: 'put',
        data: data
    })
}

// 删除利率信息
export function delIrInfo(data) {
    return request({
        url: '/ir/deleteIrInfo.action',
        method: 'delete',
        data: data
    })
}

// 新增利率行情
export function addIrPrice(data) {
    return request({
        url: '/ir/insertIrPrice.action',
        method: 'post',
        data: data
    })
}

// 修改利率行情
export function updateIrPrice(data) {
    return request({
        url: '/ir/updateIrPrice.action',
        method: 'put',
        data: data
    })
}

// 删除利率行情
export function delIrPrice(data) {
    return request({
        url: '/ir/deleteIrPrice.action',
        method: 'delete',
        data: data
    })
}


